how to convert er diagram to relational model